/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.tms.entity;

import org.hibernate.validator.constraints.Length;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 调度订单明细Entity
 * @author dhw
 * @version 2017-11-29
 */
public class DispatchDetail extends DataEntity<DispatchDetail> {
	
	private static final long serialVersionUID = 1L;
	private String orderCode;		// 订单编号
	private String pickAddress;		// 提货地址
	private String receiveAddress;		// 收货地址
	private String packaging;		// 包装规格
	private String weight;		// 重量（KG）
	private String volume;		// 方数（m³）
	private Dispatch tmsDispatch;		// 调度 父类
	
	public DispatchDetail() {
		super();
	}

	public DispatchDetail(String id){
		super(id);
	}

	public DispatchDetail(Dispatch tmsDispatch){
		this.tmsDispatch = tmsDispatch;
	}

	@Length(min=1, max=64, message="订单编号长度必须介于 1 和 64 之间")
	@ExcelField(title="订单编号", align=2, sort=6)
	public String getOrderCode() {
		return orderCode;
	}

	public void setOrderCode(String orderCode) {
		this.orderCode = orderCode;
	}
	
	@Length(min=1, max=64, message="提货地址长度必须介于 1 和 64 之间")
	@ExcelField(title="提货地址", align=2, sort=7)
	public String getPickAddress() {
		return pickAddress;
	}

	public void setPickAddress(String pickAddress) {
		this.pickAddress = pickAddress;
	}
	
	@Length(min=1, max=64, message="收货地址长度必须介于 1 和 64 之间")
	@ExcelField(title="收货地址", align=2, sort=8)
	public String getReceiveAddress() {
		return receiveAddress;
	}

	public void setReceiveAddress(String receiveAddress) {
		this.receiveAddress = receiveAddress;
	}
	
	@Length(min=1, max=64, message="包装规格长度必须介于 1 和 64 之间")
	@ExcelField(title="包装规格", align=2, sort=9)
	public String getPackaging() {
		return packaging;
	}

	public void setPackaging(String packaging) {
		this.packaging = packaging;
	}
	
	@ExcelField(title="重量（KG）", align=2, sort=10)
	public String getWeight() {
		return weight;
	}

	public void setWeight(String weight) {
		this.weight = weight;
	}
	
	@ExcelField(title="方数（m³）", align=2, sort=11)
	public String getVolume() {
		return volume;
	}

	public void setVolume(String volume) {
		this.volume = volume;
	}
	
	public Dispatch getTmsDispatch() {
		return tmsDispatch;
	}

	public void setTmsDispatch(Dispatch tmsDispatch) {
		this.tmsDispatch = tmsDispatch;
	}
	
}